package com.ruoyi.project.jiaqin.quotationcollect.domain;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import com.ruoyi.project.jiaqin.quotation.domain.Quotation;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 行情收藏对象 quotation_collect
 * 
 * @author LCL
 * @date 2021-10-23
 */
public class QuotationCollect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String memberId;

    /** 行情ID */
    @Excel(name = "行情ID")
    private String quotationId;

    /** 收藏时间 */
    @Excel(name = "收藏时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date collectAt;

    private Quotation quotation;

    public Quotation getQuotation() {
        return quotation;
    }

    public void setQuotation(Quotation quotation) {
        this.quotation = quotation;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setMemberId(String memberId) 
    {
        this.memberId = memberId;
    }

    public String getMemberId() 
    {
        return memberId;
    }
    public void setQuotationId(String quotationId) 
    {
        this.quotationId = quotationId;
    }

    public String getQuotationId() 
    {
        return quotationId;
    }
    public void setCollectAt(Date collectAt) 
    {
        this.collectAt = collectAt;
    }

    public Date getCollectAt() 
    {
        return collectAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("memberId", getMemberId())
            .append("quotationId", getQuotationId())
            .append("collectAt", getCollectAt())
            .toString();
    }
}
